package org.xinjiang.tarim.travel.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xinjiang.tarim.travel.mapper.RouteDayPoiMapper;
import org.xinjiang.tarim.travel.model.RouteDayPoi;
import org.xinjiang.tarim.travel.service.RouteDayPoiService;

import java.util.List;

@Service
public class RouteDayPoiServiceImpl implements RouteDayPoiService {
    @Autowired
    RouteDayPoiMapper mapper;

    @Override
    public List<RouteDayPoi> selectByRouteDayId(Long routerDayId) {
        return mapper.selectByRouteDayId(routerDayId);
    }

    @Override
    public List insertByList(List list) {
        mapper.insertByList(list);
        return list;
    }

    @Override
    public int delete(Long id) {
        return mapper.delete(id);
    }
}
